package hu.kisszoltan.boxescape.gui;

import hu.kisszoltan.boxescape.Game;

import java.awt.Dimension;

import javax.swing.JFrame;


public class MainWindow extends JFrame {

	private static final long serialVersionUID = 1L;

	public MainWindow() {
		super();
		init();
	}

	public MainWindow(String title) {
		super(title);
		init();
	}

	private void init() {
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setMinimumSize(new Dimension(320, 240));
		setResizable(false);
		
		GamePane g = new GamePane();
		getContentPane().add(g);
		pack();
		
		Game.getInstance().setGamePane(g);
	}
}
